﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="WebApp.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" href="css/Site_Css.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="inc/FineMessBox/css/subModal.css" />

    <script type="text/javascript" src="inc/FineMessBox/js/common.js"></script>

    <script type="text/javascript" src="inc/FineMessBox/js/subModal.js"></script>

    <script type="text/javascript">
        function reSetIframe() {
            var iframe = document.getElementById("mainFrame");
            //try{
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height = height;
            //}catch (ex){}
        }

        function reSetIFrame(frm) {
            var h = document.getElementById('menuBar').scrollHeight;
            if (h && h < 500)
                h = 500;
            frm.style.height = h;
        }

        function autoFixHight() {
            var height = document.documentElement.clientHeight - document.getElementById('TrTop').clientHeight - document.getElementById('TrBottom').clientHeight;
            //var height = window.screen.height - document.body.scrollHeight;
            document.getElementById('frmTitle').height = height;
            document.getElementById('menuBar').height = height;
            //document.getElementById("mainFrame").height= height;
        }

        var M_MenuBarFlag = 1;
        function menuBarClick(obj) {
            if (M_MenuBarFlag == 1) {
                document.getElementById('frmTitle').style.display = 'none';
                obj.src = 'images/Menu/close.gif';
                M_MenuBarFlag = 0;
            }
            else {
                document.getElementById('frmTitle').style.display = '';
                obj.src = 'images/Menu/open.gif';
                M_MenuBarFlag = 1;
            }
        }

        function menuBarMouseOver(obj) {
            if (M_MenuBarFlag == 1)
                obj.src = 'images/Menu/close_on.gif';
            else
                obj.src = 'images/Menu/open_on.gif';
        }

        function menuBarMouseOut(obj) {
            if (M_MenuBarFlag == 1)
                obj.src = 'images/Menu/close.gif';
            else
                obj.src = 'images/Menu/open.gif';
        }
    </script>

    <title>在线管理系统 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
        .navPoint
        {
            font-family: Webdings;
            font-size: 9pt;
            color: white;
            cursor: pointer;
        }
        p
        {
            font-size: 9pt;
        }
        .font_size
        {
            font-family: "Verdana" , "Arial" , "Helvetica" , "sans-serif";
            font-size: 12px;
            font-weight: normal;
            font-variant: normal;
            text-transform: none;
        }
    </style>
</head>
<body style="margin-left: 0px; margin-right: 0px; margin-top: 0px;" onload="autoFixHight();">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
        <tr id="TrTop">
            <td width="100%" height="50" colspan="3" style="border-bottom: 1px solid #000000">
                <table height="49" border="0" cellspacing="0" cellpadding="0" width="100%" class="font_size"
                    style="background-image: url(images/headerBg.jpg); background-repeat: repeat;">
                    <tr>
                        <td>
                            <img src="images/header1.jpg" style="border: 0px" alt="" />
                        </td>
                        <td style="vertical-align: bottom;color: #ffffff">
                            <span id="spanUserName" runat="server"></span>【<span id="spanRoleName"
                                runat="server"></span>】欢迎您! &nbsp;&nbsp;<a href="ResetPwdFrm.aspx" target="mainFrame" style="color:#ffffff">修改密码</a>
                            &nbsp;<a href="logout.aspx" style="color:#ffffff">注销登录</a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="TrMain">
            <td id="frmTitle" name="frmTitle" nowrap="nowrap" valign="middle" align="center"
                width="185px" style="border-right: 1px solid #000000; background-color: #9aadcd"
                height="550">
                <iframe name="BoardTitle" style="height: 100%; visibility: inherit; width: 185px;
                    z-index: 2" scrolling="auto" frameborder="0" src="left.aspx"></iframe>
            </td>
            <td id="menuBar" style="width: 10pt" bgcolor="#7898A8" width="10" title="关闭/打开左栏"
                class="navPoint">
                <table border="0" cellpadding="0" cellspacing="0" width="11" height="100%" align="right">
                    <tr>
                        <td valign="middle" align="right" class="middleCss">
                            <img border="0" src="images/Menu/close.gif" id="menuimg" alt="隐藏左栏" style="cursor: pointer"
                                width="11" height="76" onclick="menuBarClick(this)" onmouseout="menuBarMouseOut(this)"
                                onmouseover="menuBarMouseOver(this)" />
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 100%; vertical-align: top">
                <iframe id="mainFrame" name="mainFrame" style="visibility: inherit; width: 100%;
                    height: 100%; z-index: 1" scrolling="auto" frameborder="0" src="orderfrm.aspx"
                    onload="reSetIFrame(this);"></iframe>
            </td>
        </tr>
        <tr id="TrBottom" style="background-image: url(images/headerBg.jpg); background-repeat: repeat;">
            <td colspan="3" height="20">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" height="20">
                    <tr>
                        <td>
                            Powered By <a href="http://www.company.com" target="_blank"><font color="#ffffff">www.company.com</font></a>
                        </td>
                        <td align="right" width="400">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
